#ifndef __ROLEMGR_H_28394__
#define __ROLEMGR_H_28394__

#include <hash_map>
#include "IRole.h"


class CRoleMgr
{
public:
	CRoleMgr();
	~CRoleMgr();

	void AddUser(int nType, unsigned int unID);
	void AddMonster(int unID);
	IRole* GetRole(unsigned int unID);
	void OnTimer();
private:
	stdext::hash_map<unsigned int, IRole*> m_hmapRoles;
};

extern CRoleMgr* pRoleMgr;

#endif //__ROLEMGR_H_28394__